package spike.pool.implementations;


import spike.pool.interfaces.ConnectionSource;

/**
 * Created by Julia on 07.12.2014.
 */
public class PublicConnectionSource <T> implements ConnectionSource<T> {

    private T connection;
    private long startTime;

    public PublicConnectionSource(T connection) {
        this.connection = connection;
    }

    public T getConnection() {
        return connection;
    }


    @Override
    public T open() {
        return connection;
    }

    @Override
    public void close(T obj) {

    }
}
